package com.dzx.awt;

import java.awt.*;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年07月22日 09:14:36
 */
public class FrameDemo {
    public static void main(String[] args) {
        Frame frame = new Frame("Test Frame");
        Panel panel = new Panel();//创建panel容器
        panel.setSize(50, 50);
        frame.add(panel);
        frame.setBounds(30, 30, 250, 200);
        frame.setVisible(true);


        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.exit(1);

    }
}
